<?php
class Invitation extends Zend_Db_Table_Abstract
{

protected $_name = 'invitations';
protected $_primary = 'id';

protected $_referenceMap = array (
		'Inviter' => array (
		'columns' => array('inviter_id'),
		'refTableClass' => 'User'
		),
		'Invitee' => array (
		'columns' => array('invitee_id'),
		'refTableClass' => 'User'
		)
		);

public function exists($inviter, $invitee)
{
}

public function getInvitation($key)
{
}

public function createInvitation($inviter, $invitee)
{
}

public function completeInvitation($key)
{
}

}
?>
